package com.site.blog.my.core.controller.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 回复邮件
 */
public class EmailReplyVo {

    private String toName;

    private String toEmail;

    /**
     * 邮件主题
     */
    private String title;

    /**
     * 回复原文
     */
    private String original;

    /**
     * 回复内容
     */
    private String reply;

    /**
     * 作者
     */
    private String author;

    /**
     * 对应链接
     */
    private String url;

    /**
     * 回复时间
     */
    private String time;

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getToEmail() {
        return toEmail;
    }

    public void setToEmail(String toEmail) {
        this.toEmail = toEmail;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOriginal() {
        return original;
    }

    public void setOriginal(String original) {
        this.original = original;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTime() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(new Date());
    }

    public void setTime(String time) {
        this.time = time;
    }
}
